<?php

namespace App\Console\Commands;

use App\Http\Logic\TickersLogic;
use App\Http\Logic\TransferLogic;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class CancelTransferOrder extends Command
{
    protected $signature = 'transfer_order:cancel';

    protected $description = '取消支付超时转让订单';

    public function handle()
    {
        $res = TransferLogic::cancelAllPayOrder();

        if(false === $res) {
            Log::channel('daily')->error(TransferLogic::getErrorMessage());
        }
    }

}
